﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200074B RID: 1867
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetMissionDataScRsp : IMessage<GetMissionDataScRsp>, IMessage, IEquatable<GetMissionDataScRsp>, IDeepCloneable<GetMissionDataScRsp>, IBufferMessage
	{
		// Token: 0x170017DD RID: 6109
		// (get) Token: 0x060053ED RID: 21485 RVA: 0x000E30FF File Offset: 0x000E12FF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetMissionDataScRsp> Parser
		{
			get
			{
				return GetMissionDataScRsp._parser;
			}
		}

		// Token: 0x170017DE RID: 6110
		// (get) Token: 0x060053EE RID: 21486 RVA: 0x000E3106 File Offset: 0x000E1306
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetMissionDataScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170017DF RID: 6111
		// (get) Token: 0x060053EF RID: 21487 RVA: 0x000E3118 File Offset: 0x000E1318
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetMissionDataScRsp.Descriptor;
			}
		}

		// Token: 0x060053F0 RID: 21488 RVA: 0x000E311F File Offset: 0x000E131F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetMissionDataScRsp()
		{
		}

		// Token: 0x060053F1 RID: 21489 RVA: 0x000E3148 File Offset: 0x000E1348
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetMissionDataScRsp(GetMissionDataScRsp other) : this()
		{
			this.missionList_ = other.missionList_.Clone();
			this.nKNPEKOBHEI_ = other.nKNPEKOBHEI_.Clone();
			this.trackMissionId_ = other.trackMissionId_;
			this.retcode_ = other.retcode_;
			this.mainMissionList_ = other.mainMissionList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060053F2 RID: 21490 RVA: 0x000E31B7 File Offset: 0x000E13B7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetMissionDataScRsp Clone()
		{
			return new GetMissionDataScRsp(this);
		}

		// Token: 0x170017E0 RID: 6112
		// (get) Token: 0x060053F3 RID: 21491 RVA: 0x000E31BF File Offset: 0x000E13BF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<Mission> MissionList
		{
			get
			{
				return this.missionList_;
			}
		}

		// Token: 0x170017E1 RID: 6113
		// (get) Token: 0x060053F4 RID: 21492 RVA: 0x000E31C7 File Offset: 0x000E13C7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> NKNPEKOBHEI
		{
			get
			{
				return this.nKNPEKOBHEI_;
			}
		}

		// Token: 0x170017E2 RID: 6114
		// (get) Token: 0x060053F5 RID: 21493 RVA: 0x000E31CF File Offset: 0x000E13CF
		// (set) Token: 0x060053F6 RID: 21494 RVA: 0x000E31D7 File Offset: 0x000E13D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint TrackMissionId
		{
			get
			{
				return this.trackMissionId_;
			}
			set
			{
				this.trackMissionId_ = value;
			}
		}

		// Token: 0x170017E3 RID: 6115
		// (get) Token: 0x060053F7 RID: 21495 RVA: 0x000E31E0 File Offset: 0x000E13E0
		// (set) Token: 0x060053F8 RID: 21496 RVA: 0x000E31E8 File Offset: 0x000E13E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170017E4 RID: 6116
		// (get) Token: 0x060053F9 RID: 21497 RVA: 0x000E31F1 File Offset: 0x000E13F1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<MainMission> MainMissionList
		{
			get
			{
				return this.mainMissionList_;
			}
		}

		// Token: 0x060053FA RID: 21498 RVA: 0x000E31F9 File Offset: 0x000E13F9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetMissionDataScRsp);
		}

		// Token: 0x060053FB RID: 21499 RVA: 0x000E3208 File Offset: 0x000E1408
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetMissionDataScRsp other)
		{
			return other != null && (other == this || (this.missionList_.Equals(other.missionList_) && this.nKNPEKOBHEI_.Equals(other.nKNPEKOBHEI_) && this.TrackMissionId == other.TrackMissionId && this.Retcode == other.Retcode && this.mainMissionList_.Equals(other.mainMissionList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060053FC RID: 21500 RVA: 0x000E3290 File Offset: 0x000E1490
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.missionList_.GetHashCode();
			num ^= this.nKNPEKOBHEI_.GetHashCode();
			if (this.TrackMissionId != 0U)
			{
				num ^= this.TrackMissionId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.mainMissionList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060053FD RID: 21501 RVA: 0x000E3312 File Offset: 0x000E1512
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060053FE RID: 21502 RVA: 0x000E331A File Offset: 0x000E151A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060053FF RID: 21503 RVA: 0x000E3324 File Offset: 0x000E1524
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.Retcode);
			}
			this.missionList_.WriteTo(ref output, GetMissionDataScRsp._repeated_missionList_codec);
			this.mainMissionList_.WriteTo(ref output, GetMissionDataScRsp._repeated_mainMissionList_codec);
			if (this.TrackMissionId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.TrackMissionId);
			}
			this.nKNPEKOBHEI_.WriteTo(ref output, GetMissionDataScRsp._repeated_nKNPEKOBHEI_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06005400 RID: 21504 RVA: 0x000E33B0 File Offset: 0x000E15B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.missionList_.CalculateSize(GetMissionDataScRsp._repeated_missionList_codec);
			num += this.nKNPEKOBHEI_.CalculateSize(GetMissionDataScRsp._repeated_nKNPEKOBHEI_codec);
			if (this.TrackMissionId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.TrackMissionId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.mainMissionList_.CalculateSize(GetMissionDataScRsp._repeated_mainMissionList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06005401 RID: 21505 RVA: 0x000E3440 File Offset: 0x000E1640
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetMissionDataScRsp other)
		{
			if (other == null)
			{
				return;
			}
			this.missionList_.Add(other.missionList_);
			this.nKNPEKOBHEI_.Add(other.nKNPEKOBHEI_);
			if (other.TrackMissionId != 0U)
			{
				this.TrackMissionId = other.TrackMissionId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.mainMissionList_.Add(other.mainMissionList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06005402 RID: 21506 RVA: 0x000E34C3 File Offset: 0x000E16C3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06005403 RID: 21507 RVA: 0x000E34CC File Offset: 0x000E16CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 66U)
				{
					if (num == 32U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 42U)
					{
						this.missionList_.AddEntriesFrom(ref input, GetMissionDataScRsp._repeated_missionList_codec);
						continue;
					}
					if (num == 66U)
					{
						this.mainMissionList_.AddEntriesFrom(ref input, GetMissionDataScRsp._repeated_mainMissionList_codec);
						continue;
					}
				}
				else
				{
					if (num == 72U)
					{
						this.TrackMissionId = input.ReadUInt32();
						continue;
					}
					if (num == 96U || num == 98U)
					{
						this.nKNPEKOBHEI_.AddEntriesFrom(ref input, GetMissionDataScRsp._repeated_nKNPEKOBHEI_codec);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040020CD RID: 8397
		private static readonly MessageParser<GetMissionDataScRsp> _parser = new MessageParser<GetMissionDataScRsp>(() => new GetMissionDataScRsp());

		// Token: 0x040020CE RID: 8398
		private UnknownFieldSet _unknownFields;

		// Token: 0x040020CF RID: 8399
		public const int MissionListFieldNumber = 5;

		// Token: 0x040020D0 RID: 8400
		private static readonly FieldCodec<Mission> _repeated_missionList_codec = FieldCodec.ForMessage<Mission>(42U, Mission.Parser);

		// Token: 0x040020D1 RID: 8401
		private readonly RepeatedField<Mission> missionList_ = new RepeatedField<Mission>();

		// Token: 0x040020D2 RID: 8402
		public const int NKNPEKOBHEIFieldNumber = 12;

		// Token: 0x040020D3 RID: 8403
		private static readonly FieldCodec<uint> _repeated_nKNPEKOBHEI_codec = FieldCodec.ForUInt32(98U);

		// Token: 0x040020D4 RID: 8404
		private readonly RepeatedField<uint> nKNPEKOBHEI_ = new RepeatedField<uint>();

		// Token: 0x040020D5 RID: 8405
		public const int TrackMissionIdFieldNumber = 9;

		// Token: 0x040020D6 RID: 8406
		private uint trackMissionId_;

		// Token: 0x040020D7 RID: 8407
		public const int RetcodeFieldNumber = 4;

		// Token: 0x040020D8 RID: 8408
		private uint retcode_;

		// Token: 0x040020D9 RID: 8409
		public const int MainMissionListFieldNumber = 8;

		// Token: 0x040020DA RID: 8410
		private static readonly FieldCodec<MainMission> _repeated_mainMissionList_codec = FieldCodec.ForMessage<MainMission>(66U, MainMission.Parser);

		// Token: 0x040020DB RID: 8411
		private readonly RepeatedField<MainMission> mainMissionList_ = new RepeatedField<MainMission>();
	}
}
